The present invention provides compounds of Formula (I) and (II), or a pharmaceutically acceptable salts thereof, where R53, R54, p, q, and n are as defined herein. The compounds of the present invention have been found to be useful as 17α-hydroxylase/C17,20-lyase inhibitors.