Added request code

Added actual requests in code
(in an 'if' loop)